package app;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JPasswordField;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.Toolkit;

public class CambioPass extends JFrame {

	private JPanel contentPanePassChange;
	private JPasswordField currentPass;
	private JPasswordField newPass1;
	private JPasswordField newPass2;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					CambioPass frame = new CambioPass();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public CambioPass() {
		setIconImage(Toolkit.getDefaultToolkit().getImage(CambioPass.class.getResource("/icons/emblem-dropbox-unsyncable.png")));
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 316, 177);
		contentPanePassChange = new JPanel();
		contentPanePassChange.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPanePassChange);
		contentPanePassChange.setLayout(null);
		
		JLabel lblContraseaActual = new JLabel("Contrase\u00F1a actual:");
		lblContraseaActual.setBounds(10, 11, 102, 14);
		contentPanePassChange.add(lblContraseaActual);
		
		currentPass = new JPasswordField();
		currentPass.setBounds(132, 8, 156, 20);
		contentPanePassChange.add(currentPass);
		
		JLabel lblNewLabel = new JLabel("Nueva contrase\u00F1a:");
		lblNewLabel.setBounds(10, 39, 102, 14);
		contentPanePassChange.add(lblNewLabel);
		
		JLabel lblConfirmarContrasea = new JLabel("Confirmar contrase\u00F1a:");
		lblConfirmarContrasea.setBounds(10, 67, 117, 14);
		contentPanePassChange.add(lblConfirmarContrasea);
		
		newPass1 = new JPasswordField();
		newPass1.setBounds(132, 39, 156, 20);
		contentPanePassChange.add(newPass1);
		
		newPass2 = new JPasswordField();
		newPass2.setBounds(132, 64, 156, 20);
		contentPanePassChange.add(newPass2);
		
		JButton btnNewButton = new JButton("");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		btnNewButton.setIcon(new ImageIcon(CambioPass.class.getResource("/icons/emblem-dropbox-uptodate.png")));
		btnNewButton.setBounds(256, 95, 32, 32);
		contentPanePassChange.add(btnNewButton);
		
		JButton button = new JButton("");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
			}
		});
		button.setIcon(new ImageIcon(CambioPass.class.getResource("/icons/emblem-noread.png")));
		button.setBounds(214, 95, 32, 32);
		contentPanePassChange.add(button);
	}
}
